package com.kuang.factory.absract;

public class Client {
    public static void main(String[] args) {
        System.out.println("小米家的产品");

        //小米共产
        XiaoMiFactory xiaoMiFactory = new XiaoMiFactory();

        phoneProduct xiaomiphone = xiaoMiFactory.phoneProduct1();
        routerProduct xiaomirouter = xiaoMiFactory.routerProduct1();

        xiaomiphone.start();

        xiaomirouter.shutdown();
    }
}
